# 将文件推到oss
def put_file_to_oss(local_file):
    ac_key = '**********'
    ac_secret = ''**********''
    auth = oss2.Auth(ac_key,ac_secret)

    endpoint = 'https://oss-cn-guangzhou.aliyuncs.com'
    bucket_name = 'game1214'
    bucket = oss2.Bucket(auth,endpoint,bucket_name)

    object_name = '1214model01.zip'
    # local_file = '/home/aistudio/work/1214.zip'

    bucket.put_object_from_file(object_name,local_file)

# 将文件从oss拉下来
def put_file_to_oss(local_file):
    ac_key = '**********'
    ac_secret = '**********'
    auth = oss2.Auth(ac_key,ac_secret)

    endpoint = 'https://oss-cn-guangzhou.aliyuncs.com'
    bucket_name = 'game1214'
    bucket = oss2.Bucket(auth,endpoint,bucket_name)

    object_name = '1214model01.zip'

    bucket.put_object_from_file(object_name,local_file)
